This was written for the Microchip dsPIC30F4011 microcontroller. 

The program configures the microcontroller & sets up the MCPWM module.

Any questions, e-mail roboticsguy@roboticsguy.com.